{extend name="main/index" /}

{block name="main"}

<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
    <script type="text/javascript">
    try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
    </script>

    <ul class="breadcrumb">
        <i class="icon-home home-icon"></i>
        <li class="active">修改角色</li>
    </ul><!-- .breadcrumb -->

    <div class="nav-search" id="nav-search">
    <form class="form-search">
        <span class="input-icon">
            <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
            <i class="icon-search nav-search-icon"></i>
        </span>
    </form>
    </div><!-- #nav-search -->
    </div>
    
    <div class="page-content">
        <h3 class="header smaller lighter blue">修改角色</h3>
        <div class="row">
            <div class="col-xs-12">
                <hr>
                <form action="{:url('admin/role/doEdit', ['id' => $role['id']])}" method='get' name="myform" onsubmit="return checkForm()" class="form-horizontal">
                    <input type="hidden" name="id" value="<?= $role['id'] ?>">
                    <div class="form-group" style="">
                        <label for="" class="col-sm-2 control-label">角色名：</label>
                        <div class="col-sm-4">
                            <input type="text" name="name" onblur="checkName()" class="form-control" value="<?= $role['name']; ?>">
                        </div>
                            <span id="nametab"></span>
                    </div>
                    <div class="form-group">
                        <label for="" class="col-sm-2 control-label">角色描述：</label>
                        <div class="col-sm-4">
                            <input  type="text" name="remark" onblur="checkRemark()" class="form-control" value="<?= $role['remark']?>">
                        </div>
                            <span id="remarktab"></span>
                    </div>
                   
                    <div class="form-group">
                        <div class="col-sm-offset-2 col-sm-4">
                          <button type="submit" class="btn btn-default">保存</button>
                        </div>
                    </div>
                </form>
            </div><!-- /.col -->
        </div><!-- /.row -->
    </div>
    
</div>

{/block}


{block name="myjs"}
    {js href="/static/admin/assets/xiaojs/admin_role_edit.js"}
{/block}



